package cn.platform.mapper;

import cn.platform.response.TeacherOptionVO;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface TeacherClassMapper {

    List<TeacherOptionVO> getByClassId(String id);

    void insert(@Param("teachers") List<Integer> teachers,@Param("id")  String id);

    @Delete("delete from jxt_teacla where class_id = #{id}")
    void deleteByClassId(String id);
}
